package com.gullmall.search.entity.vo;

import com.gullmall.common.to.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * 所有可能传的参数
 * 全文检索 skuTitle -> keyword
 * 排序 saleCount(销量),hotScore(热度评分),skuPrice(价格)
 */
@Data
public class SearchParams {

    private String keyword;
    //根据类别筛选
    private Long catalogId;
    //排序条件
    // sort=saleCount_asc或desc  sort=hotScore_asc或desc  sort=skuPrice_asc或desc
    private String sort;
    //hasStock=1仅看有货,hasStock=0全部查看
    private Integer hasStock;
    //价格区间查询
    // skuPrice=1_500(1到500) skuPrice=_500(500以内) skuPrice=500_(500以上)
    private String skuPrice;
    //根据品牌id筛选(允许多选)
    private List<Long> brandId;
    //根据属性筛选(允许多选) attrs=属性id_属性值
    private List<String> attrs;
    //当前页码
    private Integer pageNum;

}
